﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<% 
    if(Session["CurrentUser"] != null){
        Carmall.Entity.UsersInfo user = (Carmall.Entity.UsersInfo)Session["CurrentUser"]; 
        if(user.UserType == 1){
%>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><span class="icon_2">用户管理</span></div>
			</div>
			<div class="c_box_a_a cbb">
				<ul>
                    <li><a href="/Users" title="用户管理">用户管理</a></li>
                    <li><a href="/Users/Create" title="创建用户">创建用户</a></li>
                    <li><a href="/Users/Roles" title="角色管理">角色管理</a></li>
                    <!--
					<li><a href="../../Content/page/s_1_1.html" title="汽配厂商用户管理">汽配厂商用户管理</a></li>
					<li><a href="../../Content/page/s_1_2.html" title="零售终端用户管理">零售终端用户管理</a></li>
					<li><a href="../../Content/page/s_1_3.html" title="工作人员用户管理">工作人员用户管理</a></li>
                    -->
				</ul>
			</div>
		</div>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><span class="icon_2">商品管理</span></div>
			</div>
			<div class="c_box_a_a cbb">
				<ul>
					<li><a href="/Product/Category" title="类目管理">类目管理</a></li>
					<li><a href="/Product/CarType" title="车型设置">车型设置</a></li>
					<li><a href="/Product/CarBrand" title="品牌设置">品牌设置</a></li>
					<li><a href="/Product/Create" title="发布产品">发布产品</a></li>
					<li><a href="/Product/Inventory" title="库存管理">库存管理</a></li>
					<li><a href="/Product" title="商品下架">商品下架</a></li>
					<li><a href="/Product" title="商品信息">商品信息</a></li>
				</ul>
			</div>
		</div>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><span class="icon_2">促销管理</span></div>
			</div>
			<div class="c_box_a_a cbb">
				<ul>
					<li><a href="../../Content/page/s_3_1.html" title="发布促销">发布促销</a></li>
					<li><a href="../../Content/page/s_3_2.html" title="历史促销记录">历史促销记录</a></li>
					<li><a href="../../Content/page/s_3_3.html" title="促销分析统计">促销分析统计</a></li>
				</ul>
			</div>
		</div>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><span class="icon_2">交易管理</span></div>
			</div>
			<div class="c_box_a_a cbb">
				<ul>
					<li><a href="../../Content/page/s_4_1.html" title="待发货的订单">待发货的订单</a></li>
					<li><a href="../../Content/page/s_4_2.html" title="待收款的订单">待收款的订单</a></li>
					<li><a href="../../Content/page/s_4_3.html" title="历史订单">历史订单</a></li>
					<li><a href="../../Content/page/s_4_4.html" title="发货信息设置">发货信息设置</a></li>
				</ul>
			</div>
		</div>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><span class="icon_2">投诉管理</span></div>
			</div>
			<div class="c_box_a_a cbb">
				<ul>
					<li><a href="../../Content/page/s_5_1.html" title="查看投诉">查看投诉</a></li>
				</ul>
			</div>
		</div>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><span class="icon_2">系统消息设置</span></div>
			</div>
			<div class="c_box_a_a cbb">
				<ul>
					<li><a href="../../Content/page/s_6_1.htmll" title="发布公告">发布公告</a></li>
				</ul>
			</div>
		</div>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><span class="icon_2">系统设置</span></div>
			</div>
			<div class="c_box_a_a">
				<ul>
					<li><a href="../../Content/page/s_7_1.html" title="系统设置">系统设置</a></li>
				</ul>
			</div>
		</div>
<%} else if(user.UserType == 2){ %>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><a href="#"><span class="icon_2">交易管理</span></a></div>
			</div>
			<div class="c_box_a_a cbb">
				<ul>
					<li><a href="#" title="待发货的订单">待发货的订单</a></li>
					<li><a href="#" title="待收款的订单">待收款的订单</a></li>
					<li><a href="#" title="历史订单">历史订单</a></li>
					<li><a href="#" title="发货信息设置">发货信息设置</a></li>
				</ul>
			</div>
		</div>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><a href="#"><span class="icon_2">商品管理</span></a></div>
			</div>
			<div class="c_box_a_a cbb">
				<ul>
					<li><a href="../../Content/page/admin_system_shelf.html" title="类目管理">类目管理</a></li>
					<li><a href="../../Content/page/admin_add_product.html" target="_blank" title="车型设置">车型设置</a></li>
					<li><a href="../../Content/page/admin_not_shelf.html" title="品牌设置">品牌设置</a></li>
					<li><a href="../../Content/page/admin_exchange.html" title="发布产品">发布产品</a></li>
					<li><a href="../../Content/page/historical_prices.html" title="库存更新">库存更新</a></li>
					<li><a href="#" title="商品下架">商品下架</a></li>
					<li><a href="#" title="商品信息">商品信息</a></li>
				</ul>
			</div>
		</div>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><a href="#"><span class="icon_2">销售报表</span></a></div>
			</div>
			<div class="c_box_a_a cbb">
				<ul>
					<li><a href="../../Content/page/list_sold_items.html" title="日销售报表">日销售报表</a></li>
					<li><a href="../../Content/page/order_list_new.html" title="周销售报表">周销售报表</a></li>
					<li><a href="../../Content/page/consign_setting.html" title="月销售报表">月销售报表</a></li>
				</ul>
			</div>
		</div>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><a href="#"><span class="icon_2">用户管理</span></a></div>
			</div>
			<div class="c_box_a_a cbb">
				<ul>
					<li><a href="../../Content/page/personal_information.html" title="用户列表">用户列表</a></li>
					<li><a href="../../Content/page/modify_password.html" title="新增用户">新增用户</a></li>
				</ul>
			</div>
		</div>
		<div class="c">
			<div class="c_box_a">
				<div class="c_box_a_title"><a href="#"><span class="icon_2">厂商信息设置</span></a></div>
			</div>
			<div class="c_box_a_a">
				<ul>
					<li><a href="#" title="厂商信息设置">厂商信息设置</a></li>
				</ul>
			</div>
		</div>
<%} else if(user.UserType == 3) {%>
    无可用菜单
<%} %>
<%} %>
